import config from "@/config/env";
import request from "@/utils/request";
import { AxiosResponse } from "axios";

// 广告主/代理渠道列表查询
export const getAccountList = <T>(
    data?: Record<string, any>,
  ): Promise<AxiosResponse<T>> => {
    return request.post<T>(`${config.API}/commercial/account/list`, data);
  };

  // 车间能耗
  export const getWorkshopList = <T>(
    data?: Record<string, any>,
  ): Promise<AxiosResponse<T>> => {
    return request.get<T>(`/print/list`, data);
  };